<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"  
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<f:view contentType="text/html">
	<h:head>
		<f:facet name="first">
            <meta content='text/html; charset=UTF-8' http-equiv="Content-Type"/>
            <title>#{msgs.title}</title>
        </f:facet>

		<link rel="shortcut icon" href="#{request.contextPath}/favicon.ico" type="image/x-icon" />
		<link rel="icon" href="#{request.contextPath}/favicon.ico" type="image/x-icon" />
		<link rel="stylesheet" type="text/css" href="#{request.contextPath}/css/common/default.css" />
		<link rel="stylesheet" type="text/css" href="#{request.contextPath}/css/custom.css" />
		<link rel="stylesheet" type="text/css"
			href="#{request.contextPath}/css/promptskin/vista/ymPrompt.css" />

		<script language="JavaScript" src="#{request.contextPath}/js/common/util.js"></script>
		<script language="JavaScript" src="#{request.contextPath}/js/common/validator.js"></script>
		<script language="JavaScript" src="#{request.contextPath}/js/common/common.js"></script>
		<script language="JavaScript" src="#{request.contextPath}/js/common/ymPrompt.js"></script>
		<script language="JavaScript" src="#{request.contextPath}/js/custom.js"></script>

		<style type="text/css">
			.ui-widget {
				font-size: 75%;
			}
		</style>

		<ui:insert name="head"></ui:insert>
	</h:head>

	<p:ajaxStatus onstart="dialog.show();" onsuccess="dialog.hide();" />
	
	<p:dialog id="ajaxdialog" header="#{msgs.dialog_wait_title}" modal="true" draggable="false"
		resizable="false" widgetVar="dialog" closable="false">
		<p:graphicImage value="/images/common/ajaxloadingbar.gif" />
	</p:dialog>

	<h:body onload="changeTextBox();document.getElementById('username').focus();">
		<p:layout fullPage="true">
			<p:layoutUnit id="bottom" position="south" height="42" zindex="0" scrollable="null">
				<ui:include src="/pages/public/footer.xhtml" />
			</p:layoutUnit>

			<p:layoutUnit id="left" position="west" width="300" resizable="true" closable="false"
				collapsible="true" minWidth="200" style="padding-left:10px;">
				<ui:insert name="left" />
			</p:layoutUnit>

			<p:layoutUnit id="center" position="center" scrollable="true">
				<h:panelGrid columns="2" width="100%" columnClasses="left,right" class="logoTable">
					<h:panelGroup>
						<h:panelGrid columns="2" columnClasses="left,right">
							<h:graphicImage url="#{msgs.header_logo_url}" />
							<h:outputText value="#{msgs.header_logo_title}" styleClass="logoTitle" />
						</h:panelGrid>
					</h:panelGroup>
				</h:panelGrid>

				<ui:insert name="content" />
			</p:layoutUnit>
		</p:layout>
	</h:body>
</f:view>
</html>
